/**
 * 
 */
package model;

import java.sql.Date;

/**
 * @author yuqi
 *
 */
public class Member {
	private int id;
	private String userName;
	private String name;
	private String sex;
	private int age;
	private String tel;
	private String email;
	private String address;
	private String level_name;
	private double balance;
	private double totalConsuption;
	private Date date;
	
	/**
	 * use to do select;
	 * @param id
	 * @param userName
	 * @param name
	 * @param sex
	 * @param age
	 * @param tel
	 * @param email
	 * @param address
	 * @param level_name
	 * @param balance
	 * @param totalConsuption
	 * @param date
	 */
	public Member(int id,String userName, String name,String sex,int age,
			String tel, String email,String address, String level_name, 
			double balance ,double totalConsuption,Date date){
		this.id = id;
		this.userName = userName;
		this.name  = name;
		this.sex = sex;
		this.age = age;
		this.tel = tel;
		this.email = email;
		this.address = address;
		this.level_name = level_name;
		this.balance = balance;
		this.totalConsuption = totalConsuption;
		this.date = date;
	}
	
	/**
	 * use to do insert;
	 * @param userName
	 * @param name
	 * @param sex
	 * @param age
	 * @param tel
	 * @param email
	 * @param address
	 * @param level_name
	 * @param date
	 */
	public Member(String userName ,String name,String sex,int age,
			String tel, String email,String address, 
			Date date){
		this.userName = userName;
		this.name  = name;
		this.sex = sex;
		this.age = age;
		this.tel = tel;
		this.email = email;
		this.address = address;
		this.date = date;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @param user_id the user_id to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the user_id
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the level_name
	 */
	public String getLevel_name() {
		return level_name;
	}

	/**
	 * @param level_name the level_name to set
	 */
	public void setLevel_name(String level_name) {
		this.level_name = level_name;
	}

	/**
	 * @return the balance
	 */
	public double getBalance() {
		return balance;
	}

	/**
	 * @param balance the balance to set
	 */
	public void setBalance(double balance) {
		this.balance = balance;
	}

	/**
	 * @return the totalConsuption
	 */
	public double getTotalConsuption() {
		return totalConsuption;
	}

	/**
	 * @param totalConsuption the totalConsuption to set
	 */
	public void setTotalConsuption(double totalConsuption) {
		this.totalConsuption = totalConsuption;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
}
